<HTML>
<HEAD>
<meta charset="UTF-8">
<title>ActiveSpeakerPolicy - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy</a>&nbsp;/&nbsp;<a href="./index.html">ActiveSpeakerPolicy</a><br/>
<br/>
<h1>ActiveSpeakerPolicy</h1>
<code><span class="keyword">interface </span><span class="identifier">ActiveSpeakerPolicy</span></code>
<p><a href="./index.html">ActiveSpeakerPolicy</a> calculates a normalized score of how active a speaker is. Implementations
of <a href="./index.html">ActiveSpeakerPolicy</a> provide custom algorithms for calculating the score.</p>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="calculate-score.html">calculateScore</a></h4>
</td>
<td>
<p>Return the score of the speaker. If the score is 0, this speaker is not active.</p>
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">calculateScore</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy.ActiveSpeakerPolicy$calculateScore(com.amazonaws.services.chime.sdk.meetings.audiovideo.AttendeeInfo, com.amazonaws.services.chime.sdk.meetings.audiovideo.VolumeLevel)/attendeeInfo">attendeeInfo</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo/-attendee-info/index.html"><span class="identifier">AttendeeInfo</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy.ActiveSpeakerPolicy$calculateScore(com.amazonaws.services.chime.sdk.meetings.audiovideo.AttendeeInfo, com.amazonaws.services.chime.sdk.meetings.audiovideo.VolumeLevel)/volume">volume</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo/-volume-level/index.html"><span class="identifier">VolumeLevel</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html"><span class="identifier">Double</span></a></code></td>
</tr>
</tbody>
</table>
<h3>Inheritors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="../-default-active-speaker-policy/index.html">DefaultActiveSpeakerPolicy</a></h4>
</td>
<td>
<p><a href="../-default-active-speaker-policy/index.html">DefaultActiveSpeakerPolicy</a> A default implementation of the Active Speaker Policy</p>
<code><span class="keyword">class </span><span class="identifier">DefaultActiveSpeakerPolicy</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">ActiveSpeakerPolicy</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
